//
// Created by vista on 2017/10/25.
//

#include "header/Utils.h"

#include "header/FaceDetect.h"

using namespace std;
using namespace cv;

//
//Params global_params;
//
//string modelPath ="/Users/vista/Documents/image-process-project/face/model/";
//string dataPath = "/Users/vista/Documents/image-process-project/face/dataset/afw/";
//string cascadeName = "/Users/vista/CLionProjects/face-alignment-in-3000fps/cfg/haarcascade_frontalface_alt.xml";
//
//string fd_model = "/Users/vista/CLionProjects/EbuRC/model/seeta_fd_frontal_v1.0.bin";
//
//string out_path = modelPath;

int main(int argc, const char ** argv)
{
    // load model
    ReadGlobalParamFromFile(modelPath+"LBF.model");

    string baseImgPath = "/Users/vista/Documents/PIC/searchimg/model/34.jpg";
    string baseImgPath2 = "/Users/vista/Documents/PIC/searchimg/model/33.jpg";

    regressor.init();
    regressor.Load(modelPath);

    detect_face_and_align(baseImgPath,baseImgPath2);
}